<!DOCTYPE html>
<html>
<head>
    <title>待办事项列表</title>
</head>
<body>
<h1>待办事项列表</h1>
<ul>
    <#list todoList as todo>
        <li>
            ${todo.content}
            <a href="/todo/check?id=${todo.id}">查看</a> |
            <a href="/todo/edit?id=${todo.id}">编辑</a> |
            <a href="/todo/delete?id=${todo.id}">删除</a>
        </li>
    </#list>
</ul>
<form action="/todo/save" method="post">
    <input type="text" name="content" placeholder="新增待办事项内容" required />
    <button type="submit">添加待办事项</button>
</form>
</body>
</html>